/*
 * @Author: captern
 * @@Gitee: https://gitee.com/captern
 * @@websit: http://www.captern.cn/
 * @Date: 2021-02-04 10:11:29
 * @LastModifiedBy: captern
 * @LastEditTime: 2021-04-13 15:43:07
 * @Description:
 */
const ENV = process.env.NODE_ENV;

const out = () => {
  var outcfg = (ENV === 'production') ? pro : dev;
  outcfg.version = "1.0.0";
  outcfg.shareText = '点我、点我、点我';
  outcfg.shareImg = '';
  outcfg.getCodeInterval = 60; // 获取验证码间隔
  outcfg.msg = msg;

  return outcfg;
}

const dev = {
	websiteUrl: 'http://mhwc.putaoevent.com',
	// websiteUrl: 'https://minhangxunbao.bloks.com',
	configUrl: "https://h5.putao.com/minhangxunbao/setting",
	debug: true
}
const pro = {
	// websiteUrl: 'http://mhwc.putaoevent.com',
	websiteUrl: 'https://minhangxunbao.bloks.com',
	configUrl: "https://h5.putao.com/minhangxunbao/setting",
	debug: false
}

const msg = {
  loginNone: '您还没有登录，请登录',
  loginTimeout: '登录超时，请重新登录',

  telEmpty: '请输入手机号码',
  telError: '手机号码错误，请重新输入',

  pwdEmpty: '请输入登录密码',
  pwdError: '登录密码错误，请重新输入',

  codeEmpty: '请输入验证码',
  codeError: '验证码错误，请重新输入',

  shortMsgSucc: '短信已发送，请注意查收',
  protocalReg: '请阅读并同意《注册协议》',
  bindAccSucc: '关联手机号成功',

  wxSignInErr: '获取用户信息失败，请确认您是否授权',
  wxSignInUnauth: '您需要先授权获取用户信息才能使用微信登录',

}

export default out();
